# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: handler.py
# Time: 16:54

from common.element.elements import PocoElement
from common.util.api_util import get_yaml_data


class LoginHandler(PocoElement):
    def __init__(self, poco, log):
        super().__init__(poco, log)
        self.page = get_yaml_data("login.yaml")



    def get_zhanghaoshuru(self):
        return self.poco_element_exists(self.page.get("zhanghaoshuru"))

    def get_mimashuru(self):
        return self.poco_element_exists(self.page.get("mimashuru"))

    def get_dengluanniu(self):
        return self.poco_element_exists(self.page.get("dengluanniu"))

    def get_dengluhouquanxian(self):
        return self.poco_element_exists(self.page.get("dengluhouquanxian"))

    def get_guanbiguanggao(self):
        return self.poco_element_exists(self.page.get("guanbiguanggao"))
